<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!-- ================== BEGIN BASE JS ================== -->
<script src="${ctx}/assets/plugins/jquery/jquery-1.9.1.min.js"></script>
<script src="${ctx}/assets/plugins/jquery/jquery-migrate-1.1.0.min.js"></script>
<script src="${ctx}/assets/plugins/jquery-ui/ui/minified/jquery-ui.min.js"></script>
<script src="${ctx}/assets/plugins/bootstrap/js/bootstrap.min.js"></script>
<!--[if lt IE 9]>
	<script src="${ctx}/assets/crossbrowserjs/html5shiv.js"></script>
	<script src="${ctx}/assets/crossbrowserjs/respond.min.js"></script>
	<script src="${ctx}/assets/crossbrowserjs/excanvas.min.js"></script>
<![endif]-->
<script src="${ctx}/assets/plugins/slimscroll/jquery.slimscroll.min.js"></script>
<script src="${ctx}/assets/plugins/jquery-cookie/jquery.cookie.js"></script>

<!-- ================== END BASE JS ================== -->

<script src="${ctx}/assets/plugins/jquery-validate/jquery.validate.min.js" type="text/javascript"></script>
<script src="${ctx}/assets/plugins/jquery-validate/jquery.validate-extend.js" type="text/javascript"></script>
<script src="${ctx}/assets/plugins/jquery-validate/messages_cn.js" type="text/javascript"></script>
<script src="${ctx}/assets/js/common/date-format.js" type="text/javascript"></script>
<script src="${ctx}/assets/js/apps.min.js"  type="text/javascript"></script>
<script src="${ctx}/assets/slider.js" type="text/javascript"></script>
<script src="${ctx}/assets/js/bootstrap-dialog.min.js" type="text/javascript"></script>
<script src="${ctx}/assets/js/jquery.form.js" type="text/javascript"></script>
<script src="${ctx}/assets/js/jquery.binddata.js" type="text/javascript"></script>
<script src="${ctx}/assets/js/form2json.js" type="text/javascript"></script>
<script src="${ctx}/assets/js/common/permission.js" type="text/javascript"></script>
<script type="text/javascript">
	jQuery.getJSON(ctx + "/menu/getSliderMenu?now="+new Date().getTime(), function(result) {
		SliderBar.createMenu(result, '#sidebar-nav');
		App.init();//APP初始化
		var pathname = window.location.pathname;//获取url路径
		jQuery("#sliderBar").find("li[menuId]").each(
				function() {
					jQuery(this).children("a").each(
							function() {
								var selectUrl = jQuery(this).attr("href");
								if (selectUrl.indexOf("?") > 0) {
									selectUrl = selectUrl.substring(0,
											selectUrl.indexOf("?"));
								}
								if (pathname == selectUrl) {
									jQuery(this).parent().addClass("active");
									jQuery('title').text(jQuery(this).text());
									jQuery(
											"li[menuId='"
													+ jQuery(this).parent()
															.attr("parentId")
													+ "']").addClass("active");
								}
							})
				})
	});
</script>
<!-- ================== END BASE JS ================== -->